const {ccclass, property} = cc._decorator;

@ccclass
export default class canvas extends cc.Component {

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        // getPhysicsManager物理管理器
        let gp:cc.PhysicsManager = cc.director.getPhysicsManager();
        gp.enabled = true;  // 开启物理引擎
        // 绘制调试区域
        // gp.debugDrawFlags = 1;
        var Bits = cc.PhysicsManager.DrawBits;
        gp.debugDrawFlags =
        Bits.e_shapeBit;
    }

    start () {

    }

    // update (dt) {}
}
